package cn.xxt.book.dao;
import java.util.Set;

import org.phprpc.*; 

import cn.xxt.book.domain.Book;

interface ihello{
	public String say(String name);
	public double allcount();
	Set<Book> findbooks(int begin, int offset);
	public String findbooks2(int begin, int offset);
}
public class PhpRpcDemo {   
   
public static void main(String[] args) {   
   PHPRPC_Client client = new PHPRPC_Client("http://library.aiyooyoo.com:8080/action/book/rpc.jsp");   
   ihello m = (ihello)client.useService(ihello.class);
   System.out.println(m.say("白菜"));
   System.out.println(m.allcount());
   System.out.println(m.findbooks2(0,5));
   System.out.println(m.findbooks(0,5));
}
}
